home *** CD-ROM | disk | FTP | other *** search
- Copyright (C) 1990 by J. Scott Sanbar. All rights reserved.
-
- JAMES SCOTT SANBAR
- 8100 Glenwood
- Oklahoma City, OK 73114
-
- CIS: 73760,3304
-
- .ZIP should contain NONSTOP.ASM and NONSTOP.PAS as well as NONSTOP.OBJ
- and NONSTOP.TPU. NONSTOP.TPU was compiled with Turbo Pascal 5.5
- compiler.
-
- To use, just include the identifier NONSTOP in the uses clause of your
- program, then call the procedure InstallNonStopISR:
-
- program UnstoppableProgram;
-
- uses NonStop;
-
- begin
- InstallNonStopISR;
- repeat until false
- end.
-
- This program will not be stoppable from the keyboard with clean DOS
- running in real mode. Disables the CTRL-BREAK, CTRL-C and CTRL-ALT-DEL
- key combinations. Reenables on normal TP program exit. INT 9 can be
- returned using global variable OldIntr09 before non-standard exit.
-
- Three global booleans are provided to toggle on and off the disabling of
- these key combinations (default TRUE):
-
- NoBoot := false; {Enables CTRL-ALT-DELETE key combination}
- NoBreak := false; {Enables CTRL-BREAK key combination}
- NoCtrlC := false; {Enables CTRL-C key combination}
-
- Setting them back to true will disable the respective keys. Any or all of
- the key combinations may be enabled or disabled as often as you wish from
- any part of the program.
-
- If you are using Turbo Pascal 5.0, you will need to recompile the
- NONSTOP.PAS unit with your compiler. All you need to do is make sure the
- NONSTOP.OBJ object module can be found by your compiler - it will
- automatically link it in if it can find it. See your manuals for details.
-
- If you wish to recompile everything for some reason, you will need a TASM
- or other MASM compatible assembler as well as Turbo Pascal 5.x. Then,
- do the following:
-
- TASM NONSTOP.ASM
- TPC NONSTOP.PAS
-
- You can also compile from within the IDE, but it must know where to find
- the .OBJ file. Look under the Directories option of the Options menu.
-
- NONSTOP.ASM should work with any MASM compatible assembler, but has only
- been tested with TASM.
-
- This unit has only been tested on an extended keyboard. If the CTRL-BREAK
- is not disabled on a regular (PC type) keyboard, you will need to add
- keyboard detection code and make minor alterations in the NONSTOP.ASM
- and NONSTOP.PAS modules. In any case, CTRL-ALT-DEL and CTRL-C should
- be disabled just fine and you can disable CTRL-BREAK via other methods.
-
- This text as well as both modules are copyrighted and may not be sold for
- profit. Feel free to link the NONSTOP.TPU module into any of your
- programs or distribute these files free of charge.
-
- The code was based on various TSR's, TP code, book examples and alot just
- came out of my own head.
-
- May not work with 80386 based multi-tasking operating environments, namely
- Windows 3.0 in 386 enhanced mode. Works fine with Windows 3.0 in standard
- or real mode.